package com.qms.app.dao;

import com.qms.app.bean.Question;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface QuestionDao {

    List<Question> list(@Param("page")Integer page, @Param("rows")Integer rows,
                        @Param("title") String title,@Param("uname") String uname);

    int count(@Param("title") String title,@Param("uname") String uname);

    int save(Question question);

    int remove(@Param("list") List<Integer> ids,@Param("uid") Integer uid);

    int update(@Param("question") Question question,@Param("uid") Integer uid );
}
